package com.books.adapter

import android.widget.ImageView
import com.books.R
import com.books.model.BookHomeListModel
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import io.reactivex.annotations.Nullable
import pic.PicLoadManager

class BooksLrytAdapter(private val layoutRes: Int) : BaseQuickAdapter<BookHomeListModel.DataBean, BaseViewHolder>(layoutRes) {
    var pic: ImageView? = null
    override fun convert(helper: BaseViewHolder, item: BookHomeListModel.DataBean) {
        pic = helper.itemView.findViewById(R.id.iv_content_pig)
        PicLoadManager.loadPicture(item.img,pic);
    }
}


